package com.ruoyi.Echarts.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ruoyi.DegreeCommit.domain.DegreeCommit;
import com.ruoyi.DegreeCommit.mapper.DegreeCommitMapper;
import com.ruoyi.Echarts.service.IService.EchartsServiceImpl;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.*;

@RestController
@RequestMapping("/echarts")
public class EchartsController extends BaseController {


    @Autowired
    private EchartsServiceImpl echartsService;

    @GetMapping("/data")
    public AjaxResult getData(){
        return AjaxResult.success(echartsService.getData());
    }
}
